/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upf.grupE;
/*Los mensajes que se env�an al sistema de mensajer�a
contienen las propiedades del mensaje (origen, destino, �) y adem�s un
objeto (SearchProfile, SearchResult, UserContent).*/
/**
 *
 * @author xday666
 */
public interface GenericMessage {
    /**
     * Defines the destination of the message.
     * @param to String with the address of the destination
     */
    void setTo(String to);
    /**
     * Defines the packet ID.
     * @param iD
     */
    void setID(String iD);
    /**
     * Defines the kind of message.
     * @param type The type of message
     */
    void setType(int type);
    /**
     * Assigns the form of the message.
     * @param from The sender of the message
     */
    void setFrom(String from);
    /**
     * Retrieves the destination.
     * @return Returns the destination
     */
    String getTo();
    /**
     * Retrns the ID of the message.
     * @return The ID of the message
     */
    String getID();
    /**
     * Returns the type of the message.
     * @return the type of the message
     */
    int getType();
    /**
     * Returns the source of the message.
     * @return the source of the message
     */
    String getFrom();
}
